package com.itpan.Service;

import com.itpan.Entity.Employee;
import com.itpan.Entity.PurchaseOrder;
import com.itpan.Entity.StatsByT;
import org.apache.commons.collections4.Get;

import java.time.LocalDateTime;
import java.util.List;

public interface PurchaseOrderService {
    List<PurchaseOrder> getall();

    List<PurchaseOrder> getallpage(Integer page,Integer pageSize);

    List<PurchaseOrder> getByMutil(PurchaseOrder purchaseOrder);

    PurchaseOrder getById(Long Id);

    void saveOne(PurchaseOrder purchaseOrder);

    void saveAll(List<PurchaseOrder> lsit);

    void update(PurchaseOrder purchaseOrder);

    void delete(Long Id);

    List<StatsByT> getSumPriceOfEveryEmployee();


    List<StatsByT> getcounttimesofEmployee();

    List<Employee> getbyempid(String Id);

    List<StatsByT> gettotalof7();


    List<PurchaseOrder> getOrdersWithinDateRange(LocalDateTime startDate, LocalDateTime endDate);
}
